From fbc4f2e8948d9c81bfb5cc4a72db7834fe153482 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 15 Sep 2009 09:26:08 +0100 Subject: [PATCH] xend: Fix VDI.get_record We cannot get correct records of VDI by VDI.get_record. The correct records of VDI are gotten by this patch. Signed-off-by: Masaki Kanno --- tools/python/xen/xend/XendVDI.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/python/xen/xend/XendVDI.py b/tools/python/xen/xend/XendVDI.py index 0ef432b303..fa3d147951 100644 --- a/tools/python/xen/xend/XendVDI.py +++ b/tools/python/xen/xend/XendVDI.py @@ -60,7 +60,8 @@ class XendVDI(AutoSaveObject): 'virtual_size', 'physical_utilisation', 'sharable', - 'read_only'] + 'read_only', + 'type'] SAVED_CFG_INT = ['sector_size', 'virtual_size', 'physical_utilisation'] @@ -155,11 +156,12 @@ class XendVDI(AutoSaveObject): 'name_description': self.name_description, 'virtual_size': self.virtual_size, 'physical_utilisation': self.physical_utilisation, - 'sharable': False, - 'readonly': False, + 'sharable': self.sharable, + 'read_only': self.read_only, + 'type': self.type, 'SR': self.sr_uuid, 'other_config': self.other_config, - 'VBDs': []} + 'VBDs': self.vbds} def get_location(self): raise NotImplementedError() -- 2.30.2